/*
 * <p>Copyright® 2009-2022 东软 IT 实训中心版权所有。</p>
 */

package com.max.back.doctor.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.max.back.doctor.dao.CodeNameDao;
import com.max.back.doctor.service.CodeNameService;
import com.max.back.entity.CodeName;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
* @description 
* 
* <p>
* <code>CodeNameServiceImpl</code>
*
* </p>
* @see 
* @author 辛凤文 forward.seen@foxmail.com
* @version 1.0 
* @time 2022/7/25 21:34 
*/
@Service("doctorCodeNameService")
public class CodeNameServiceImpl extends ServiceImpl<CodeNameDao, CodeName>
        implements CodeNameService {

    @Autowired
    private CodeNameDao codeNameDao;

    @Override
    public List<Map<String, Object>> getMapsByType(String type) {
        return codeNameDao.queryMapsByType(type);
    }

    @Override
    public String getValueByKey(Integer key) {
        return codeNameDao.queryByKey(key);
    }
}